How to write the polynomial function given the zeros